import request from '@/utils/request'

/**
 * 获取线边仓自定义数据
 * @param getWarehouseCustomData
 */
export function getWarehouseCustomData(data) {
  return request({
    url: `/md/commonCustomDatas/getWarehouseCustomData`,
    method: 'get',
    params: { data }
  })
}
/**
 * 通过线边仓查询数据
 * @param inquire
 */
export function inquireWarehouses(workShop) {
  return request({
    url: `/md/warehouses/query`,
    method: 'get',
    params: workShop
  })
}
/**
 * 查询线边仓数据弹出框
 * @param list
 */
export function selectPageWarehouse(data) {
  return request({
    url: `/md/commonBrowsers/selectPageWarehouse`,
    method: 'post',
    data
  })
}
/**
 * 保存
 * @param Save
 */
export function saveWarehouses(data) {
  return request({
    url: `/md/warehouses/save`,
    method: 'post',
    data
  })
}

/**
 * 删除
 * @param delete
 */
export function deleteWarehouses(data) {
  return request({
    url: `/md/warehouses/delete`,
    method: 'get',
    params: data
  })
}
